package com.webSocket.test.entity;



import java.util.List;

public class MySocketMessage {

    public MySocketMessage(){}

    public MySocketMessage(String message){
        this.message = message;
    }


    private String messageType;         //消息类型  group--群组  person--私聊
    private String fromUser;            //发送者id
    private String toUser;              //接受者id   私聊是起作用
    private String message;             //消息内容
    private List<User> userList;            //当前在线人数
    private String groupId;             //群组id

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getFromUser() {
        return fromUser;
    }

    public void setFromUser(String fromUser) {
        this.fromUser = fromUser;
    }

    public String getToUser() {
        return toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }
}
